import request from '@/utils/myRequest'

// 获取订单列表
function findOrdersByPage(start, limit, data) {
  return request({
    url: `/lejuAdmin/order/findOrdersByPage/${start}/${limit}`,
    method: 'POST',
    data
  })
}
// 查看订单
function orderDetail(orderId) {
  return request({
    url: `lejuAdmin/order/orderDetail/${orderId}`
  })
}
// 关闭订单
function finishOrder(orderId) {
  return request({
    url: `lejuAdmin/order/finishOrder/${orderId}`,
    method: 'POST'
  })
}
// 确认发货
function sendDone(data) {
  return request({
    url: `lejuAdmin/order/sendDone`,
    data,
    method: 'POST'
  })
}
// 确认强制收货
function receiveProductsForce(orderId) {
  return request({
    url: `/lejuAdmin/order/receiveProductsForce/${orderId}`,
    method: 'POST'
  })
}

export { findOrdersByPage, orderDetail, finishOrder, sendDone, receiveProductsForce }
